package com.ibeeking.found.content.service.common.dos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @ClassName BroadcastGoodsRelationDO
 * @Description
 * @Author ibeeking
 * @Date 2022-02-18 14:11
 **/
@Data
@TableName("broadcast_goods_relation")
public class BroadcastGoodsRelationDO implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    /**
     * 直播间ID
     */
    @TableField(value="room_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Integer roomId;

    /**
     * 直播间名称
     */
    @TableField(value="room_name")
    private String roomName;
    /**
     * 商品ID
     */
    @TableField(value="goods_id")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long goodsId;

    /**
     * 商品名称，最长14个汉字
     */
    @TableField(value="goods_name")
    private String goodsName;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "create_by")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long createBy;

    @TableField(value = "modify_time")
    private LocalDateTime modifyTime;

    @TableField(value = "modify_by")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long modifyBy;

    @TableField(value = "del_status")
    private Integer delStatus = 0;
}
